<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>俄罗斯方块</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="container">
        <h1>俄罗斯方块</h1>
        
        <div class="game-wrapper">
            <div class="game-area">
                <canvas id="gameCanvas" width="300" height="600"></canvas>
                <div class="game-overlay" id="gameOverlay">
                    <div class="overlay-content">
                        <h2 id="overlayTitle">游戏暂停</h2>
                        <p id="overlayMessage">按空格键继续游戏</p>
                        <button id="startBtn" class="btn">开始游戏</button>
                        <button id="pauseBtn" class="btn" style="display: none;">暂停游戏</button>
                        <button id="restartBtn" class="btn">重新开始</button>
                    </div>
                </div>
            </div>
            
            <div class="info-panel">
                <div class="score-section">
                    <h3>得分</h3>
                    <p id="score">0</p>
                </div>
                
                <div class="level-section">
                    <h3>等级</h3>
                    <p id="level">1</p>
                </div>
                
                <div class="lines-section">
                    <h3>消除行数</h3>
                    <p id="lines">0</p>
                </div>
                
                <div class="next-piece">
                    <h3>下一个</h3>
                    <canvas id="nextCanvas" width="120" height="120"></canvas>
                </div>
                
                <div class="controls">
                    <h3>操作说明</h3>
                    <ul>
                        <li>← → 左右移动</li>
                        <li>↓ 快速下降</li>
                        <li>↑ 旋转方块</li>
                        <li>空格 暂停/继续</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    
    <script src="tetris.js"></script>
</body>
</html>
